//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ruoyi.web.controller.task;

import com.ruoyi.live.base.domain.SystemClass;
import com.ruoyi.live.base.domain.TaskCatalog;
import com.ruoyi.live.base.domain.User;
import com.ruoyi.live.task.service.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

@Controller("commonTaskController")
@RequestMapping("/commonTask")
public class CommonController {
    @Autowired
    CommonService service;

    public CommonController() {
    }

    @ResponseBody
    @RequestMapping({"/listCatalog"})
    public List<TaskCatalog> listCatalog() {
        return this.service.listCatalog();
    }

    @ResponseBody
    @RequestMapping({"/listTaskState"})
    public List<Map<String, Object>> listTaskState() {
        return this.service.listTaskState();
    }

    @ResponseBody
    @RequestMapping({"/listTaskType"})
    public List<Map<String, Object>> listTaskType() {
        return this.service.listTaskType();
    }

    @ResponseBody
    @RequestMapping({"/listSourceType"})
    public List<Map<String, Object>> listSourceType() {
        return this.service.listSourceType();
    }

    @ResponseBody
    @RequestMapping({"/listTeachers"})
    public List<User> getTeachers() {
        return this.service.getTeachers();
    }

    @ResponseBody
    @RequestMapping({"/listStudent"})
    public List<Map<String, Object>> listStudent() {
        return this.service.listStudent();
    }

    @ResponseBody
    @RequestMapping({"/radarDataById"})
    public List<Map<String, Object>> radarData(Long id) {
        return this.service.radarData(id);
    }

    @ResponseBody
    @RequestMapping({"/listClass"})
    public List<SystemClass> listClass() {
        return this.service.listClass();
    }
}
